import request from '../utils/request';
const baseUrl = 'http://localhost:8002/';
// export const userServer = query => {
//     return request({
//         url: port+'/login',
//         method: 'post',
//         params: query
//     });
// };

export default {
    //用户登陆
    userLogin(params){
        return request({
            url: baseUrl+'login',
            method: 'post',
            params
        });
    },
    getUserByPage(params){
        return request({
            url: baseUrl+'usermanager/sys-user/getUserByPage',
            method: 'get',
            params
        });
    },
    getUserDetailInfoList(params){
        return request({
            url: baseUrl+'usermanager/sys-user/userDetailInfoList',
            method: 'get',
            params
        });
    },
}